<!--
 * @Author: liuxinjia 15201611813@163.com
 * @Date: 2023-08-15 15:12:22
 * @LastEditors: liuxinjia 15201611813@163.com
 * @LastEditTime: 2023-08-15 15:31:49
 * @FilePath: \TicketPrintWebPlatformd:\当前项目\马上签小贷公司移动端项目\GitLab\MashangqianBySmallLoan\pages\Information\Information.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
	<view class="information">
		<uni-grid :column="3" :show-border="false" :highlight="true">
			<uni-grid-item v-for="(item, index) in column" :index="index" :key="index">
				<view class="grid-item-box" @click="toPage(item,item.url)">
					<image :src="item.icon" mode=""></image>
					<text class="text">{{item.title}}</text>
				</view>
			</uni-grid-item>
		</uni-grid>
	</view>
</template>

<script>
	export default {
			data() {
			return {
				userInfo: "",
				column: [{
					title: '收款账户',
					icon: '/static/information/shoukuanzhanghu.png',
					url: '/pages/Information/page/Collection'
				}],
				IsSubAccount: false,
				entity:{}
			}
		},
		onLoad(options) {
			if(options.data){
				this.entity = JSON.parse(options.data)
			}
			console.log('information页面传递过来的this.entitythis.entity', this.entity )
			this.IsSubAccount = uni.getStorageSync('userInfo').IsSubAccount
		},
		onShow() {
			this.userInfo = uni.getStorageSync('userInfo')
		},
	
		methods: {
			toPage(item, url) {
				this.$pageUrl('navigateTo', url)
			}
		}
	}
</script>

<style scoped lang="scss">
	.information {
		height: 100%;
		background-color: #fff;

		.grid-item-box {
			flex: 1;
			// position: relative;
			/* #ifndef APP-NVUE */
			display: flex;
			/* #endif */
			flex-direction: column;
			align-items: center;
			justify-content: center;
			padding: 15px 0;

			image {
				width: 45px;
				height: 45px;
				width: 35px;
				height: 35px;
			}

			.text {
				margin-top: 10rpx;
				color: #888;
			}
		}

		&.active {
			background-color: #ccc;
		}
	}
</style>